﻿Public MustInherit Class Service(Of MODELO As IModelo)

    

    Protected  _dao As IDAO(Of MODELO )


#Region "METODOS CRUD"

    Public MustOverride Sub Delete(ByVal modelo As MODELO)

    Public MustOverride Function Find(ByVal NHQL As String) As IList(Of MODELO)

    Public MustOverride Function GetAll() As IList(Of MODELO)

    Public MustOverride Function GetById(ByVal id As Integer) As MODELO

    Public MustOverride Function Insert(ByVal modelo As MODELO) As MODELO

    Public MustOverride Sub Update(ByVal modelo As MODELO)

    Public MustOverride Function Search(ByVal condicoes As IList(Of Condicao)) As IList(Of MODELO)

#End Region
End Class
